package edu.xlh.travel.controller.admin;

import edu.xlh.travel.service.JwtExpireService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;

@Controller
@RequestMapping("/expire")
public class JwtExpireController {
    @Autowired
    private JwtExpireService jwtExpireService;

    @RequestMapping("/adminLogin")
    public void adminLogin(HttpServletRequest request , HttpServletResponse response) throws IOException {
       jwtExpireService.jwtExpireHandle(request , response);
    }
}
